package com.netbetter.langzheng.commons.gears.dto;

import java.util.HashMap;
import java.util.Map;

import com.google.gwt.gears.client.database.Database;

/**
 * Created by IntelliJ IDEA. User: jim Date: 2008-6-15 Time: 18:28:47 To change
 * this template use File | Settings | File Templates.
 */
public class ParametersDTO {

  private Map<String, String> parameterMap;
  private String localTableName;
  private String rootUrl;
  private Database localDB;

  public Database getLocalDB() {
    return localDB;
  }

  public void setLocalDB(Database localDB) {
    this.localDB = localDB;
  }

  public void setParameterMap(Map<String, String> parameterMap) {
    this.parameterMap = parameterMap;
  }

  public ParametersDTO() {
    parameterMap = new HashMap<String, String>();
  }

  public String getLocalTableName() {
    return localTableName;
  }

  public void setLocalTableName(String localTableName) {
    this.localTableName = localTableName;
  }

  public void add(String key, String value) {
    parameterMap.put(key, value);
  }

  public Map<String, String> getParameterMap() {
    return parameterMap;
  }

  public String getRootUrl() {
    return rootUrl;
  }

  public void setRootUrl(String rootUrl) {
    this.rootUrl = rootUrl;
  }
}
